<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
        <title>gitbook命令行&amp;markdown编辑 | Gitbook 入门教程</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.0.1">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    
    
    <link rel="next" href="../book/editor.html" />
    
    
    <link rel="prev" href="../book/index.html" />
    

        
    </head>
    <body>
        
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
    

        
    <div class="book" data-level="2.1" data-basepath=".." data-revision="Mon Apr 13 2015 22:06:22 GMT+0800 (中国标准时间)">
    

<div class="book-summary">
    <div class="book-search">
        <input type="text" placeholder="Type to search" class="form-control" />
    </div>
    <ul class="summary">
        
        
        
        

        

        
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="howtouse/index.html">
            
                
                    <a href="../howtouse/index.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        基本安装
                    </a>
                
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="howtouse/Nodejsinstall.html">
            
                
                    <a href="../howtouse/Nodejsinstall.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        Node.js安装
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="howtouse/gitbookinstall.html">
            
                
                    <a href="../howtouse/gitbookinstall.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        Gitbook安装
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="howtouse/gitbookcli.html">
            
                
                    <a href="../howtouse/gitbookcli.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        Gitbook命令行速览
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="book/index.html">
            
                
                    <a href="../book/index.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        图书编辑
                    </a>
                
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.1" data-path="book/gitbook-cli.html">
            
                
                    <a href="../book/gitbook-cli.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        gitbook命令行&amp;markdown编辑
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="book/editor.html">
            
                
                    <a href="../book/editor.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        gitbook editor编辑
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="output/index.html">
            
                
                    <a href="../output/index.html">
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        图书输出
                    </a>
                
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="output/outfile.html">
            
                
                    <a href="../output/outfile.html">
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        输出为静态网站
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="output/pdfandebook.html">
            
                
                    <a href="../output/pdfandebook.html">
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        输出PDF
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="publish/index.html">
            
                
                    <a href="../publish/index.html">
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        发布
                    </a>
                
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="publish/gitbook.html">
            
                
                    <a href="../publish/gitbook.html">
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        发布到gitbook.com
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="publish/github.html">
            
                
                    <a href="../publish/github.html">
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        发布到github仓库
                    </a>
                
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="publish/gitpages.html">
            
                
                    <a href="../publish/gitpages.html">
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        发布到Github Pages
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="end/index.html">
            
                
                    <a href="../end/index.html">
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        结束
                    </a>
                
            
            
        </li>
    


        
        <li class="divider"></li>
        <li>
            <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                Published with GitBook
            </a>
        </li>
        
    </ul>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header">
    <!-- Actions Left -->
    <a href="#" class="btn pull-left toggle-summary" aria-label="Table of Contents"><i class="fa fa-align-justify"></i></a>
    <a href="#" class="btn pull-left toggle-search" aria-label="Search"><i class="fa fa-search"></i></a>
    
    <div id="font-settings-wrapper" class="dropdown pull-left">
        <a href="#" class="btn toggle-dropdown" aria-label="Font Settings"><i class="fa fa-font"></i>
        </a>
        <div class="dropdown-menu font-settings">
    <div class="dropdown-caret">
        <span class="caret-outer"></span>
        <span class="caret-inner"></span>
    </div>

    <div class="buttons">
        <button type="button" id="reduce-font-size" class="button size-2">A</button>
        <button type="button" id="enlarge-font-size" class="button size-2">A</button>
    </div>

    <div class="buttons font-family-list">
        <button type="button" data-font="0" class="button">Serif</button>
        <button type="button" data-font="1" class="button">Sans</button>
    </div>

    <div class="buttons color-theme-list">
        <button type="button" id="color-theme-preview-0" class="button size-3" data-theme="0">White</button>
        <button type="button" id="color-theme-preview-1" class="button size-3" data-theme="1">Sepia</button>
        <button type="button" id="color-theme-preview-2" class="button size-3" data-theme="2">Night</button>
    </div>
</div>

    </div>

    <!-- Actions Right -->
    
    <div class="dropdown pull-right">
        <a href="#" class="btn toggle-dropdown" aria-label="Share"><i class="fa fa-share-alt"></i>
        </a>
        <div class="dropdown-menu font-settings dropdown-left">
            <div class="dropdown-caret">
                <span class="caret-outer"></span>
                <span class="caret-inner"></span>
            </div>
            <div class="buttons">
                <button type="button" data-sharing="twitter" class="button">
                    Share on Twitter
                </button>
                <button type="button" data-sharing="google-plus" class="button">
                    Share on Google
                </button>
                <button type="button" data-sharing="facebook" class="button">
                    Share on Facebook
                </button>
                <button type="button" data-sharing="weibo" class="button">
                    Share on Weibo
                </button>
                <button type="button" data-sharing="instapaper" class="button">
                    Share on Instapaper
                </button>
            </div>
        </div>
    </div>
    

    
    <a href="#" target="_blank" class="btn pull-right google-plus-sharing-link sharing-link" data-sharing="google-plus" aria-label="Google"><i class="fa fa-google-plus"></i></a>
    
    
    <a href="#" target="_blank" class="btn pull-right facebook-sharing-link sharing-link" data-sharing="facebook" aria-label="Facebook"><i class="fa fa-facebook"></i></a>
    
    
    <a href="#" target="_blank" class="btn pull-right twitter-sharing-link sharing-link" data-sharing="twitter" aria-label="Twitter"><i class="fa fa-twitter"></i></a>
    
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Gitbook 入门教程</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="gitbook%E5%91%BD%E4%BB%A4%E8%A1%8C-markdown%E7%BC%96%E8%BE%91">gitbook&#x547D;&#x4EE4;&#x884C;&amp;markdown&#x7F16;&#x8F91;</h1>
<h2 id="1-%E9%A6%96%E5%85%88%E4%BB%8B%E7%BB%8D%E4%B8%8B%E4%B8%80%E6%9C%AC%E4%B9%A6%E7%9A%84%E4%B8%BB%E8%A6%81%E6%96%87%E4%BB%B6%EF%BC%9A">1. &#x9996;&#x5148;&#x4ECB;&#x7ECD;&#x4E0B;&#x4E00;&#x672C;&#x4E66;&#x7684;&#x4E3B;&#x8981;&#x6587;&#x4EF6;&#xFF1A;</h2>
<h3 id="readme-md">README.md</h3>
<p>&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x76F8;&#x5F53;&#x4E8E;&#x4E00;&#x672C;Gitbook&#x7684;&#x7B80;&#x4ECB;&#xFF0C;&#x6700;&#x4E0A;&#x5C42;(&#x548C;SUMMARY.md&#x540C;&#x7EA7;)&#x7684;&#x662F;&#x672C;&#x4E66;&#x7684;Introduction&#x3002;</p>
<h3 id="summary-md">SUMMARY.md()</h3>
<p>&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x662F;&#x4E00;&#x672C;&#x4E66;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#xFF0C;&#x4F7F;&#x7528;Markdown&#x8BED;&#x6CD5;&#xFF0C; &#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x5728;&#x4F7F;&#x7528;gitbook&#x547D;&#x4EE4;&#x884C;&#x4E4B;&#x524D;&#x8981;&#x5148;&#x5199;&#x597D;&#xFF0C;&#x4EE5;&#x4FBF;&#x4E4B;&#x540E;&#x751F;&#x6210;&#x4E66;&#x7C4D;&#x76EE;&#x5F55;,&#x5982;&#x6211;&#x4EEC;&#x8FD9;&#x672C;&#x4E66;&#x7684;<code>SUMMARY.md</code>&#xFF1A;</p>
<pre><code>* [&#x57FA;&#x672C;&#x5B89;&#x88C5;](howtouse/README.md)
 - [Node.js&#x5B89;&#x88C5;](howtouse/Nodejsinstall.md)
 - [Gitbook&#x5B89;&#x88C5;](howtouse/gitbookinstall.md)
 - [Gitbook&#x547D;&#x4EE4;&#x884C;&#x901F;&#x89C8;](howtouse/gitbookcli.md)
* [&#x56FE;&#x4E66;&#x7F16;&#x8F91;](book/README.md)
 - [gitbook&#x547D;&#x4EE4;&#x884C;&amp;markdown&#x7F16;&#x8F91;](book/gitbook-cli.md)
 - [gitbook editor&#x7F16;&#x8F91;](book/editor.md)
* [&#x56FE;&#x4E66;&#x8F93;&#x51FA;](output/README.md)
 - [&#x8F93;&#x51FA;&#x4E3A;&#x9759;&#x6001;&#x7F51;&#x7AD9;](output/outfile.md)
 - [&#x8F93;&#x51FA;PDF](output/pdfandebook.md)
* [&#x53D1;&#x5E03;](publish/README.md)
  - [&#x53D1;&#x5E03;&#x5230;gitbook.com](publish/gitbook.md)
  - [Github&#x96C6;&#x6210;](publish/github.md)
  - [&#x53D1;&#x5E03;&#x5230;Github Pages](publish/gitpages.md)
* [&#x7ED3;&#x675F;](end/README.md)
</code></pre><p>&#x5217;&#x8868;&#x52A0;&#x94FE;&#x63A5;&#xFF0C;&#x94FE;&#x63A5;&#x4E2D;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x76EE;&#x5F55;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x5FC5;&#x4F7F;&#x7528;&#x3002;</p>
<h2 id="2-%E4%B9%A6%E7%B1%8D%E7%9B%AE%E5%BD%95%E5%88%9D%E5%A7%8B%E5%8C%96-%E5%86%85%E5%AE%B9%E7%BC%96%E5%86%99">2. &#x4E66;&#x7C4D;&#x76EE;&#x5F55;&#x521D;&#x59CB;&#x5316;&amp;&#x5185;&#x5BB9;&#x7F16;&#x5199;</h2>
<p>&#x5F53;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x6587;&#x4EF6;&#x521B;&#x5EFA;&#x597D;&#x4E4B;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;Gitbook&#x7684;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x5C06;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x751F;&#x6210;&#x76F8;&#x5E94;&#x7684;&#x76EE;&#x5F55;&#x53CA;&#x6587;&#x4EF6;,&#x6B65;&#x9AA4;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>&#x6253;&#x5F00;cmd,cd&#x547D;&#x4EE4;&#x8FDB;&#x5165;&#x521B;&#x5EFA;&#x7684;&#x5B58;&#x4E66;&#x7C4D;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x5982;:E:\gitbook\gitbook-studying;</li>
<li>&#x5728;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x4E86;&#x4E0A;&#x8FF0;&#x7684;SUMMARY.md&#x6587;&#x4EF6;;</li>
<li>&#x7136;&#x540E;&#x4F7F;&#x7528;&#x547D;&#x4EE4;gitbook init,&#x5219;&#x751F;&#x6210;&#x4E00;&#x7CFB;&#x5217;&#x76EE;&#x5F55;&#x6587;&#x4EF6;&#xFF0C;&#x89C1;&#x4E0B;&#x65B9;&#xFF1B;</li>
</ul>
<pre><code>$ gitbook init
$ ls
LICENSE    SUMMARY.md book       output
README.md      howtouse   publish
$ tree .
.
&#x251C;&#x2500;&#x2500; LICENSE
&#x251C;&#x2500;&#x2500; README.md
&#x251C;&#x2500;&#x2500; SUMMARY.md
&#x251C;&#x2500;&#x2500; book
&#x2502;   &#x251C;&#x2500;&#x2500; README.md
&#x2502;   &#x251C;&#x2500;&#x2500; gitbook-cli.md
&#x2502;   &#x2514;&#x2500;&#x2500; editor.md
&#x251C;&#x2500;&#x2500; howtouse
&#x2502;   &#x251C;&#x2500;&#x2500; Nodejsinstall.md
&#x2502;   &#x251C;&#x2500;&#x2500; README.md
&#x2502;   &#x251C;&#x2500;&#x2500; gitbookcli.md
&#x2502;   &#x2514;&#x2500;&#x2500; gitbookinstall.md
&#x251C;&#x2500;&#x2500; output
&#x2502;   &#x251C;&#x2500;&#x2500; README.md
&#x2502;   &#x251C;&#x2500;&#x2500; outfile.md
&#x2502;   &#x2514;&#x2500;&#x2500; pdfandebook.md
&#x2514;&#x2500;&#x2500; publish
    &#x251C;&#x2500;&#x2500; README.md
    &#x251C;&#x2500;&#x2500; gitbook.md
    &#x251C;&#x2500;&#x2500; github.md
    &#x2514;&#x2500;&#x2500; gitpages.md
</code></pre><p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;gitbook&#x7ED9;&#x6211;&#x4EEC;&#x751F;&#x6210;&#x4E86;&#x4E0E;<code>SUMMARY.md</code>&#x6240;&#x5BF9;&#x5E94;&#x7684;&#x76EE;&#x5F55;&#x53CA;&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x6BCF;&#x4E2A;&#x76EE;&#x5F55;&#x4E2D;&#xFF0C;&#x90FD;&#x6709;&#x4E00;&#x4E2A;<code>README.md</code>&#x6587;&#x4EF6;&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x4E00;&#x7AE0;&#x7684;&#x8BF4;&#x660E;&#x3002;</p>
<p>&#x6700;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x5728;&#x5BF9;&#x5E94;&#x76EE;&#x5F55;&#x4E2D;&#x7528;markdown&#x7F16;&#x8F91;&#x5668;(&#x8FD9;&#x91CC;&#x63A8;&#x8350;&#x4F7F;&#x7528;markdownpad)&#x7F16;&#x8F91;&#x81EA;&#x5DF1;&#x60F3;&#x8981;&#x7684;&#x5185;&#x5BB9;&#x5373;&#x53EF;.</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../book/index.html" class="navigation navigation-prev " aria-label="Previous page: 图书编辑"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../book/editor.html" class="navigation navigation-next " aria-label="Next page: gitbook editor编辑"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"fontSettings":{"theme":null,"family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
